home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
dir
/
managers.lha
/
Managers
/
Dir
/
Dir.ren
< prev
next >
Wrap
Text File
|
1997-01-15
|
930b
|
42 lines
G4C
; to be called from Dir.gc ONLY!
WinBig -1 -1 300 27 "Rename files"
WinType 11110010
xOnLoad
setscreen dir.ren $lv_fmscreen
xOnOpen
extract lv_file path ren_path ; get path & store it
update Dir.ren 1 $lv_file
xOnClose
lvdir Dir.gc $mlv_id refresh ; re-read the dir.
guiquit Dir.ren
xOnQuit
delvar ren_#?
xOnFail
EZreq "Error in renaming file" OK ""
;=========================> the text gad
xTextIn 5 5 290 18 "" ren_name "" 150
gadid 1
rename $lv_file $ren_name ; rename the entry
lvmulti Dir.gc $mlv_id off ; set it off
extract ren_name FILE ren_temp ; get the new file name
extract ren_temp CLEAN ren_temp ; clean it up
lvput Dir.gc $mlv_id -1 $ren_temp ; change list to the altered name
lvmulti Dir.gc $mlv_id next ; get the next one
if $lv_file = "" ; quit when it's all over
guiclose Dir.ren
endif
update Dir.ren 1 $lv_file ; put up the next entry for editing
setgad Dir.ren 1 on